package hjw.com.dao;

import hjw.com.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<Course> findByLine(@Param("start")int start, @Param("pageSize")int pageSize);//
    Course findByCno(String cno);
    List<Course> findAll();
    int count();//


    int add(Course c);//

    int updateById(Course c);

    int removeById(String cno);//
}
